const Layout = () => import('@/layout/index.vue');

const chartsRouter = {
  path: '/user',
  component: Layout,
  redirect: 'noRedirect',
  name: 'User',
  meta: {
    title: '用户',
    icon: 'list'
  },
  children: [
    {
      path: 'userGroup',
      component: () => import('@/views/user/userGroup.vue'),
      name: 'UserGroup',
      meta: { title: '用户组' }
    },
    {
      path: 'service',
      component: () => import('@/views/user/service.vue'),
      name: 'UserService',
      meta: { title: '用户客服' }
    },
    {
      path: 'list',
      component: () => import('@/views/user/list.vue'),
      name: 'UserList',
      meta: { title: '用户列表' }
    },
  ]
};

export default chartsRouter;
